package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.member.dos.MemberNoticeLog;
import com.enation.app.javashop.service.member.MemberNoticeLogManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author fk
 * @version v2.0
 * @Description:
 * @date 2018/8/15 10:03
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client")
@ApiIgnore
public class MemberNoticeLogClientController {

    @Autowired
    private MemberNoticeLogManager memberNociceLogManager;

    @PostMapping("/member-notice-log")
    public MemberNoticeLog add(@RequestParam("content") String content,
                               @RequestParam("send_time") long sendTime,
                               @RequestParam("member_id") Long memberId,
                               @RequestParam("title") String title) {

        return memberNociceLogManager.add(content,sendTime,memberId,title);
    }


}
